// author: killer
// blog: blog.csdn.net/sabcdefg
// netpt.net
// 武林秘籍 ^^^ 目录 ^^^
#include "mainwindow.h"
#include <QApplication>
#include <QTextCodec>
#include "mymultilanguage.h"

MyMultiLanguage g_MultiLanguage;

int main(int argc, char *argv[])
{
    QTextCodec *codec = QTextCodec::codecForName("UTF-8");    //获取系统编码
    QTextCodec::setCodecForLocale(codec);
    QTextCodec::setCodecForCStrings(codec);
    QTextCodec::setCodecForTr(codec);


    QApplication a(argc, argv);

    //初始化多语言, 切换多语言依赖于QApplication
    g_MultiLanguage.Init("zh_CN");

    MainWindow w;
    w.show();

    int nRet = a.exec();

    //反初始化
    g_MultiLanguage.UnInit();

    return nRet;
}
